import axios from '@/libs/api.request'

/**
 * 获取雨量图数据
 * @return {[type]}        [description]
 */
export const barline = (data) => {
  return axios.request({
    url: '/api/linkRatio/getMeterCountByMeterGasClass',
    method: 'post',
    data
  })
}

/**
 * 获取热力图数据
 * @return {[type]}        [description]
 */
export const heatmapBmapChartData = (params) => {
  return axios.request({
    url: '/api/linkRatio/getLinkRatio',
    method: 'get',
    params
  })
}
/**
 * 获取子弹图数据
 * @return {[type]}        [description]
 */
export const tableData = (data) => {
  return axios.request({
    url: '/api/linkRatio/getMeterListPaged',
    method: 'post',
    data
  })
}

/**
 * 提交修改数据
 * @return {[type]}        [description]
 */
export const submitData = (data) => {
  return axios.request({
    url: '/api/tableGas/amendment',
    method: 'post',
    data
  })
}

/**
 * 表具详情
 * @return {[type]}        [description]
 */
export const meterDetail = (id) => {
  return axios.request({
    url: '/api/meterManage/meyerQuery/getMeterBeanByMeterId/' + id,
    method: 'get'
  })
}
